package com.avic.rong.search.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * Created by Chenjiaxin on 2019/8/6 09:41
 * E-Mail Address：16601203965@163.com
 */
public class MyDataBaseHelper extends SQLiteOpenHelper {

    public static final String CREATE_TEXT = "create table textjilu(id integer primary key autoincrement,text text)";

    public MyDataBaseHelper(Context context) {
        super(context, "textjilu", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_TEXT);
        Log.e("cjx","创建数据库成功");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
